package com.googlecode.svnj.callbacks;

public class LocationSegment {

    /** oldest and youngest revisions for this segment */
    private long rangeStart, rangeEnd;
    /** the path for this segment */
    private String path;
    
    public LocationSegment(String path, long start, long end) {
        this.path = path;
        rangeStart = start;
        rangeEnd = end;
    }

    public long getRangeStart() {
        return rangeStart;
    }

    public long getRangeEnd() {
        return rangeEnd;
    }

    public String getPath() {
        return path;
    }
    
    public String toString() {
        return "[LocationSegment: path='" + path + "' start=" + rangeStart
        + " end=" + rangeEnd + "]";
    }
}
